class test(object):
    pass
t=test()
# t.name='chenhui'
def run(name):
    print('会跑的,%s' %(name))
from types import MethodType
t.run=MethodType(run,t)
# t.name
print(t.run('chenhui'))